package com.zsp.result;

public enum ResultStateEnum implements AppState {
    RESOURCE_NOT_FOUND(404, "资源不存在"),
    SUCCESS(1, "ok"),
    FAIL(0, "系统压力山大,请稍后再试！"),
    ERROR(-1, "error");

    private int state;
    private String message;

    private ResultStateEnum(int state, String message) {
        this.state = state;
        this.message = message;
    }

    public int getState() {
        return this.state;
    }

    public String getMessage() {
        return this.message;
    }
}
